#include "ADUMovable.h"

int ADUMovable::roadSpeed = 0;

ADUMovable::ADUMovable() {

}

ADUMovable::~ADUMovable() {

}

void ADUMovable::setRoadSpeed(int speed){
	roadSpeed = speed;
}

void ADUMovable::run(){
	this->stopAllActions();
	CCMoveBy* move = CCMoveBy::create(1, ccp(0, (-1)*getSpeed()));
	CCRepeatForever* repeat = CCRepeatForever::create(move);
	this->runAction(repeat);
}

CCPoint ADUMovable::getMoveableLocation() {
	return this->getPosition();
}

void ADUMovable::setType(int type) {
	this->type = type;
}

int ADUMovable::getType() {
	return type;
}
